package com.jollychic.controller;

import com.jollychic.model.UserInfo;
import com.jollychic.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by xusheng on 2019/4/24.
 */

@RestController
public class HelloDubbo {

    @Resource
    UserService userService;

    @RequestMapping("/helloDubbo")
    public UserInfo helloDubbo() {
       return userService.getUserInfo(123);
    }

    @RequestMapping("/aa")
    public String aa() {
        return "fffff";
    }

}
